package com.dyl.t03_function_interfase;

import java.util.function.Predicate;

public class PredicateX {
    public static void main(String[] args) {
        method(s -> s.length() > 5, "hello world");
    }

    public static void method(Predicate<String> predicate, String s) {
        System.out.println(predicate.test(s));
    }
}
